package com.aptemo.webetek.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class AddBetGroupEvent
		extends GwtEvent<AddTeamHandler>
{
	public static final GwtEvent.Type<AddTeamHandler>	TYPE	= new GwtEvent.Type<AddTeamHandler>();

	private String										teamId;

	public AddBetGroupEvent(String teamId)
	{
		this.teamId = teamId;
	}

	@Override
	protected void dispatch(AddTeamHandler handler)
	{
		handler.onTeamAdd(teamId);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<AddTeamHandler> getAssociatedType()
	{
		return TYPE;
	}

	public void setTeamId(String teamId)
	{
		this.teamId = teamId;
	}

	public String getTeamId()
	{
		return teamId;
	}

}
